package cn.tedu.spring.dimap;

import java.util.List;

/**
 * 老师类
 */
public class Teacher {
    private String teacherName;
    private List<Student> studentList;



    @Override
    public String toString() {
        return
                "老师姓名：" + teacherName +
                "\t学生成员：" + studentList ;
    }

    public String getTeacherName() {
        return teacherName;
    }

    public void setTeacherName(String teacherName) {
        this.teacherName = teacherName;
    }

    public List<Student> getStudentList() {
        return studentList;
    }

    public void setStudentList(List<Student> studentList) {
        this.studentList = studentList;
    }
}
